package org.dtrd.modules.shop.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.shop.entity.po.DtrdEntShcRdPatientAddress;
import java.util.Date;

/**
 * <p>
 * 收货地址表
 * </p>
 *
 * @author sun
 * @since 2022-07-23
 */
@Getter
@Setter
@ApiModel(value = "收货地址表列表信息", description = "收货地址表")
public class PatientAddressListInfo {

    private Integer dataId;

    @ApiModelProperty("患者id")
    private Integer patientId;

    @ApiModelProperty("收货人")
    private String contactPerson;

    @ApiModelProperty("联系电话")
    private String contactPhone;

    @ApiModelProperty("省id")
    private String contactProvinceId;

    @ApiModelProperty("省")
    private String contactProvinceName;

    @ApiModelProperty("市id")
    private String contactCityId;

    @ApiModelProperty("市")
    private String contactCityName;

    @ApiModelProperty("区id")
    private String contactDistrictId;

    @ApiModelProperty("区")
    private String contactDistrictName;

    @ApiModelProperty("详细地址")
    private String contactAddress;

    @ApiModelProperty("默认地址：0-否，1-是")
    private Integer isDefault;



    public PatientAddressListInfo (DtrdEntShcRdPatientAddress po) {
        dataId = po.getDataId();
        patientId = po.getPatientId();
        contactPerson = po.getContactPerson();
        contactPhone = po.getContactPhone();
        contactProvinceId = po.getContactProvinceId();
        contactProvinceName = po.getContactProvinceName();
        contactCityId = po.getContactCityId();
        contactCityName = po.getContactCityName();
        contactDistrictId = po.getContactDistrictId();
        contactDistrictName = po.getContactDistrictName();
        contactAddress = po.getContactAddress();
        isDefault = po.getIsDefault();
    }
}
